package org.huang.sample11;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @描述：
 * @作者: Mr.huang
 * @创建时间: 2017/8/22 17:57
 * @版本: 1.0
 */

@Controller
public class WebController {

    @GetMapping(value = {"/","/index"})
    public String index(Model model){
        model.addAttribute("name","springBoot");
        return "index";
    }


}
